﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IM.Easy.Entity.Gen
{
    /// <summary>
    /// 生成代码基本选项信息
    /// </summary>
    [SugarTable]
    public class GenTableOption
    {
        /// <summary>
        /// /
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public Guid Id { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid TableId { get; set; }

        /// <summary>
        /// 实体基类
        /// </summary>
        public string? BaseClass { get; set; }

        /// <summary>
        /// 签名信息
        /// </summary>
        public string? Signature { get; set; }


        /// <summary>
        /// 具体业务
        /// </summary>
        public string? Business { get; set; }

        /// <summary>
        /// 所属模块
        /// </summary>
        public string? Module { get; set; }

        /// <summary>
        /// 命名空间前缀
        /// </summary>
        public string? Namespace { get; set; }

        /// <summary>
        /// 上级菜单ID
        /// </summary>
        public long ParentMenu { get; set; }

        /// <summary>
        /// 默认排序字段
        /// </summary>
        public string? SortField { get; set; }

        /// <summary>
        /// 是否升序
        /// </summary>
        public bool Ascending { get; set; }

        /// <summary>
        /// 生成功能 add del update view
        /// </summary>
        [SugarColumn(IsJson = true)]
        public string[]? Func { get; set; } = [];
    }

}
